package top.jiachunlei.command;

/**
 * @author 朝花不迟暮
 * @version 1.0
 * @date 2020/12/10 22:22
 */
public class CommandClient
{
    public static void main(String[] args)
    {
        Stock stock = new Stock();
        BuyStock buyStock = new BuyStock(stock);
        SellStock sellStock = new SellStock(stock);

        Broker broker = new Broker();
        broker.takeOrder(buyStock);
        broker.takeOrder(sellStock);
        broker.placeOrders();
    }
}
